/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufg.inf.pos.bd;

/**
 *
 * @author limorais
 */
public enum conexaoBanco {

    ORACLE("root", "240489", "jdbc:oracle:thin:@127.0.0.1:1521:XE", "oracle.jdbc.driver"), MYSQL("root", "240489", "jdbc:mysql://127.0.0.1/db_patrimonio", "com.mysql.jdbc.Driver");

    private ConexaoBean conexao;

    private conexaoBanco(String nome, String senha, String url, String driver) {
        conexao = new ConexaoBean();
        conexao.setDriver(driver);
        conexao.setSenha(senha);
        conexao.setUrl(url);
        conexao.setUser(nome);
    }

    public ConexaoBean getConexao() {
        return conexao;
    }

    public void setConexao(ConexaoBean conexao) {
        this.conexao = conexao;
    }
}
